//-----------------------------------------------------------------------
// <copyright file="EmailBase.cs" company="FetCo">
//     Copyright (c) FetCo. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace ADESSA.Entities
{
	[Serializable]
	public class EmailBase
	{
		
		#region Variable Declarations
		public static string _Table = "Email";
		private long				mailID = 0;
		private long				memberID = 0;
		private long				userID = 0;
		private DateTime				sendDate = new DateTime(1900,1,1,0,0,0,0);
		private string				title = string.Empty;
		private int				newsletterId = 0;
		#endregion
		
		#region Constructors
		public EmailBase() {}
		
		public EmailBase (
			long mailID,
			long memberID,
			long userID,
			DateTime sendDate,
			string title,
			int newsletterId)
		
		{
			this.mailID = mailID;
			this.memberID = memberID;
			this.userID = userID;
			this.sendDate = sendDate;
			this.title = title;
			this.newsletterId = newsletterId;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long MailID
		{
			get { return mailID; }
			set { mailID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long MemberID
		{
			get { return memberID; }
			set { memberID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long UserID
		{
			get { return userID; }
			set { userID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime SendDate
		{
			get { return sendDate; }
			set { sendDate = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Title
		{
			get { return title; }
			set { title = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int NewsletterId
		{
			get { return newsletterId; }
			set { newsletterId = value; }
		}
	
		
		#endregion
	}//End Class
	
	public enum EmailColumns
	{
		MailID,
		MemberID,
		UserID,
		SendDate,
		Title,
		NewsletterId
	}//End enum
}